projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab23304
)
ARCH: EXYNOS: add support to match product id
author
Minkyu Kang
<
[email protected]
>
Mon, 15 Oct 2012 03:06:32 +0000
(
03:06
+0000)
committer
Minkyu Kang
<
[email protected]
>
Thu, 15 Nov 2012 12:08:19 +0000
(21:08 +0900)
Based upon single SoC there can be multiple variants.
This patch add support to match the complete product ID.
Signed-off-by: Minkyu Kang <
[email protected]
>
Signed-off-by: Chander Kashyap <
[email protected]
>
arch/arm/include/asm/arch-exynos/cpu.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/arch-exynos/cpu.h
b/arch/arm/include/asm/arch-exynos/cpu.h
index 2cd4ae152624bd5e7a213fd9a66a0768f33a1da1..2bde10c67f08dfb06fef8655f3e317518b40d7bf 100644
(file)
--- a/
arch/arm/include/asm/arch-exynos/cpu.h
+++ b/
arch/arm/include/asm/arch-exynos/cpu.h
@@
-139,6
+139,15
@@
static inline int cpu_is_##type(void) \
IS_SAMSUNG_TYPE(exynos4, 0x4)
IS_SAMSUNG_TYPE(exynos5, 0x5)
+#define IS_EXYNOS_TYPE(type, id) \
+static inline int proid_is_##type(void) \
+{ \
+ return s5p_cpu_id == id; \
+}
+
+IS_EXYNOS_TYPE(exynos4210, 0x4210)
+IS_EXYNOS_TYPE(exynos5250, 0x5250)
+
#define SAMSUNG_BASE(device, base) \
static inline unsigned int samsung_get_base_##device(void) \
{ \